<?php
class headernavWidget extends Widget {
	public function render(){
		$urldata = array();
		$urldata['tengxunurl'] = $this->create_url('tengxun/index');

		$urldata['imgurl'] = $this->get_asset_url('images');
		$urldata['sinaurl'] = $this->create_url('sina/index');
		$urldata['twitterurl'] = $this->create_url('home/twitter');
		$urldata['souhuurl'] = $this->create_url('souhu/index');
		$urldata['renrenurl'] = $this->create_url('home/renren');
		$urldata['login'] = $this->create_url('user/login');
		$urldata['happyurl'] = $this->create_url('home/happy');
		$urldata['logout'] = $this->create_url('user/logout');
		$urldata['changeuser'] = $this->create_url('user/changeuser');
		$urldata['register'] = $this->create_url('user/register');
		$urldata['usersetting'] = $this->create_url('user/setting');
		$this->assign($urldata);
		$this->display();
	}
}